package hku.cs.lunuo.rank;

public class Ochiai extends Voter {

	@Override
	public Label vote(VotedUnit u, VotedGlobal g) {
		int falseCases = u.tf.getFlsTimes();
		int trueCases = u.tf.getTruTimes();
		float susc;

		susc = (float) (falseCases / Math.sqrt(g.totalTF.getFlsTimes()
				* (falseCases + trueCases)));
		
		return new DefaultLabel(susc);
	}

}
